import os
import signal
import sys
import time


def exit(signum, frame):
    print('You choose to stop me.')
    os.exit(0)

def test():
    # signal.signal(signal.SIGINT, exit)
    signal.signal(signal.SIGTERM, exit)
    i = 0
    while 1:
        time.sleep(1)
        print(i)
        i = i + 1
        pass

def fn():
    print(info.a)
    info.a = 1111
    global b
    print(b)
    b += 1


class Info:
    pass

if __name__ == '__main__':
    info = Info()
    info.a = 0
    b = 0
    fn()
    print(info.a)
    print(b)